package com.sw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sw.dao.CommodityDao;
import com.sw.model.Commodity;
import com.sw.service.CommodityService;

@Service
public class CommodityServiceImpl implements CommodityService {

	@Autowired
	private CommodityDao commodityDao;
	
	@Override
	public List<Commodity> getCommodityAll() {
		
		return commodityDao.getCommodityAll();
	}

	@Override
	public Commodity getCommodityById(Integer id) {
		
		return commodityDao.getCommodityById(id);
	}

}
